$(function() {
	
	$(".image").mouseenter(function() {
		
		$('.description',this).stop().animate({bottom:"0"}, 300);
			
	}).mouseleave(function() {
				
		$('.description',this).stop().animate({bottom:"-"+($('.description',this).height()+10)+"px"}, 300);
		
	});
	
	
	
	// cache container
	var $container = $('#gallery');
	// initialize isotope

	$container.isotope({
	  animationEngine : "jquery"
	});

	$('#search select').change(function(){
	  var selector = '' //$(this).attr('value');
	  var allitem = true;
	  $('#search select').each(function() {
		  
		  if( $(this).attr('value') != '*')
		  {
         		selector += $(this).attr('value');
				
				allitem = false;
		  }
    });
	//selector = selector.substr(0,selector.length-1);
	
	
	if(allitem)
	{
		selector = '*';
	}
	console.log(selector);
	  
	  $container.isotope({ filter: selector });
	  return false;
	});
	
	
	$(".image")
});


  